<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:composition template="/view/retail/template.xhtml">
        <ui:define name="content">
            <p:dataTable id="orderServers" value="#{item.orderServerCollection}" var="orderServer" >
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="职位"/>
                    </f:facet>
                    <h:outputText value="#{orderServer.departpost.departmentPostInfo}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="服务人员"/>
                    </f:facet>
                    <h:selectOneMenu  value="#{orderServer.server}">
                        <f:selectItems  value="#{orderManager.serverSelectItems}" >
                        </f:selectItems>
                    </h:selectOneMenu>
                </p:column>
            </p:dataTable>
            <f:facet name="expansion">

                <p:dataTable id="subOrderServers" value="#{subOrderCommodity.orderServerCollection}" var="subOrderServer" >

                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="职位"/>
                        </f:facet>
                        <h:outputText value="#{subOrderServer.departpost.departmentPostInfo}"/>
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="服务人员"/>
                        </f:facet>
                        <h:selectOneMenu  value="#{subOrderServer.server}">
                            <f:selectItems  value="#{orderManager.subServerSelectItems}" >
                            </f:selectItems>
                        </h:selectOneMenu>
                    </p:column>
                </p:dataTable>
            </f:facet>
        </ui:define>
    </ui:composition>
</html>
